package com.tianji.promotion.service;

import com.tianji.promotion.domain.po.Coupon;
import com.tianji.promotion.domain.po.ExchangeCode;
import com.baomidou.mybatisplus.extension.service.IService;

public interface IExchangeCodeService extends IService<ExchangeCode> {

    /**
     * 生成兑换码
     */
    void asyncGenerateExchangeCode(Coupon coupon);

    /**
     * 检查兑换码是否已兑换
     */
    boolean updateExchangeCodeMark(Long serialNum, Boolean flag);
}
